﻿namespace UniBrickCommon.Packets
{
    public class AuthenticatePacket
    {
        public class Request
        {
            public readonly byte[] Password;
            public readonly string Username;

            public Request(string username, byte[] password)
            {
                Username = username;
                Password = password;
            }
        }

        public class Response
        {
            public readonly bool Success;
            public readonly string Message;
            public readonly string Username;

            public Response(bool success, string message, string username)
            {
                Success = success;
                Message = message;
                Username = username;
            }
        }
    }
}